package com.jie.eduorder.client;

import com.jie.commonutils.ordervo.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 用户相关的远程调用
 * @author XieZhiJie
 * @create 2020-10-17 19:25
 */
@Component
@FeignClient("service-ucenter")
public interface UcenterClient {

    /**
     * 根据用户id获取用户信息
     * 用于被远程调用
     * @param id  用户id
     * @return    返回用户信息
     */
    @PostMapping("/educenter/member/getUserInfoOrder/{id}")
    UcenterMemberOrder getUserInfoOrder(@PathVariable String id);

}
